package com.kma.summer2012.client.events.manager;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class AssignForManagerEvent extends GwtEvent<AssignForManagerEvent.AssignForManagerEventHandler> {
    public static Type<AssignForManagerEventHandler> TYPE = new Type<AssignForManagerEventHandler>();

    private int _requestID;

    public AssignForManagerEvent() {

    }

    public AssignForManagerEvent(int requestID) {
        _requestID = requestID;

    }

    public interface AssignForManagerEventHandler extends EventHandler {
        void onAssignEvent(AssignForManagerEvent event, int requestID);
    }

    @Override
    public Type<AssignForManagerEventHandler> getAssociatedType() {
        return TYPE;
    }


    public static Type<AssignForManagerEventHandler> getType() {
        return TYPE;
    }

    protected void dispatch(AssignForManagerEventHandler handler) {
        handler.onAssignEvent(this, _requestID);

    }


}

